/*
* Copyright 2008-2023 dexian.vip. All rights reserved.
* Support: http://www.dexian.vip
* License: http://www.dexian.vip/license
*/

package ${updateCommand.basePackage};

import vip.dexian.core.base.command.BaseCommand;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* ${modelMap.entityComment!}更新 表单数据
*
* @author ${modelMap.author} ${modelMap.now}
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode (callSuper = false)
// TODO 代码自动生成与${modelMap.now}，代码生成完成后，请删除该TODO语句
public class ${modelMap.simpleClassName}UpdateCommand extends BaseCommand {

<#list modelMap.fields as field>
    /**
    * ${field.comment!}
    */
    <#if field.isEntity??>
        <#if (field.isEntity)!false>
            @ToString.Exclude
            @EqualsAndHashCode.Exclude
        </#if>
    </#if>
    <#if field??&& field.annotations??>
        <#list field.annotations as annotation>
            ${annotation}
        </#list>
    </#if>
    <#if field.name??&& field.name=="order">
        @NotNull (message = "排序不能为空")
        @Min (value = 0, message = "排序不可小于0")
        @Max (value = 999_999_999, message = "排序不可大于999_999_999")
        private Integer order;
    </#if>
    private ${field.javaType!}<#if field.isEntity??><#if field.isEntity>SaveForm</#if></#if> ${field.name!};

</#list>
}
